<?php
$servername = "119.23.182.180";
$username = "srp";
$password = "srp";
//MySQLi面向对象方式连接数据库 
// 创建连接
$conn = new mysqli($servername, $username, $password);
 
// 检测连接
if ($conn->connect_error) {
    die("数据库服务连接失败: " . $conn->connect_error);
} 
echo "数据库服务连接成功";
?>
